#include "mainwindow.h"
#include "ui_mainwindow.h"

void MainWindow::startPlayMusic()
{
    QString musicPath = musicDir + QString(ui->musicList->currentItem()->text()) + ".mp3";
    player->setMedia(QUrl::fromLocalFile(musicPath));
    on_playButton_clicked();
}
